import React, { Component } from "react";

export default class App extends Component {
  render() {
      const arr = [1, 2, 3, 4]
      // jsx语法将直接渲染出标签效果
      const list = [
          <h1 key="1">标题1</h1>,
          <h1 key="2">标题2</h1>,
          <h1 key="3">标题3</h1>,
          <h1 key="4">标题4</h1>
      ]
      return (
          <div>
              <div>{ arr }</div>
              <div>{ list }</div>
          </div>
      )
  }
}